<h1>{{ discussionthread.subject }}</h1>
<h2>{{ discussionthread.discussionbody }}</h2>
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
<ul>
{% for discussionpost in discussionthread.discussionpost_set.all %}
<li>{{ discussionpost.content }}</li>
{% endfor %}
</ul>
<form action="{% url 'thediscussion:submit' discussionthread.id %}" method="post">
{% csrf_token %}
<label>Your Answer :</label><br />
<input type="text" name="thread_answer" id="answer_{{ discussionthread.discussionpost_set.count }}" value=""><br/>
<input type="submit" name="submit_answer" value="Submit" />
</form>